/**
 * Copyright &copy; 2012-2014 <a href="http://www.iframework.cn">Mas</a> All rights reserved.
 */
package com.iframework.mas.modules.accident.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.iframework.mas.common.persistence.DataEntity;

/**
 * 事故列表Entity
 * @author 余艾龙
 * @version 2016-01-30
 */
public class Accidenter extends DataEntity<Accidenter> {
	
	private static final long serialVersionUID = 1L;
	private Accident accident;		// 事故主表Id 父类
	private Long accidentcar;		// 事故车辆Id
	private String dabh;		// 档案编号
	private String zjcx;		// 准驾车型
	private String sfzmhm;		// 身份证明号码
	private String sfzmmc;		// 身份证明名称
	private Date syrq;		// 审验日期
	private Date yxqs;		// 驾驶证有效期始
	private Date yxqz;		// 驾驶证有效期止
	private String ljjf;		// 累积积分
	private String zt;		// 驾驶证状态
	private String xm;		// 驾驶员姓名
	private String xb;		// 驾驶员性别
	private String lxdh;		// 驾驶员联系电话
	private String jzqx;		// 驾证期限
	private String city;		// 驾驶员住址所属城市
	private String area;		// 驾驶员住址所属区县
	private String road;		// 驾驶员住址道路
	private String address;		// 驾驶员住址详细
	private String remark;		// remark
	
	public Accidenter() {
		super();
	}

	public Accidenter(String id){
		super(id);
	}

	public Accidenter(Accident accident){
		this.accident = accident;
	}

	@NotNull(message="事故主表Id不能为空")
	public Accident getAccident() {
		return accident;
	}

	public void setAccident(Accident accident) {
		this.accident = accident;
	}
	
	@NotNull(message="事故车辆Id不能为空")
	public Long getAccidentcar() {
		return accidentcar;
	}

	public void setAccidentcar(Long accidentcar) {
		this.accidentcar = accidentcar;
	}
	
	@Length(min=0, max=255, message="档案编号长度必须介于 0 和 255 之间")
	public String getDabh() {
		return dabh;
	}

	public void setDabh(String dabh) {
		this.dabh = dabh;
	}
	
	@Length(min=0, max=11, message="准驾车型长度必须介于 0 和 11 之间")
	public String getZjcx() {
		return zjcx;
	}

	public void setZjcx(String zjcx) {
		this.zjcx = zjcx;
	}
	
	@Length(min=0, max=255, message="身份证明号码长度必须介于 0 和 255 之间")
	public String getSfzmhm() {
		return sfzmhm;
	}

	public void setSfzmhm(String sfzmhm) {
		this.sfzmhm = sfzmhm;
	}
	
	@Length(min=0, max=255, message="身份证明名称长度必须介于 0 和 255 之间")
	public String getSfzmmc() {
		return sfzmmc;
	}

	public void setSfzmmc(String sfzmmc) {
		this.sfzmmc = sfzmmc;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getSyrq() {
		return syrq;
	}

	public void setSyrq(Date syrq) {
		this.syrq = syrq;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getYxqs() {
		return yxqs;
	}

	public void setYxqs(Date yxqs) {
		this.yxqs = yxqs;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getYxqz() {
		return yxqz;
	}

	public void setYxqz(Date yxqz) {
		this.yxqz = yxqz;
	}
	
	@Length(min=0, max=11, message="累积积分长度必须介于 0 和 11 之间")
	public String getLjjf() {
		return ljjf;
	}

	public void setLjjf(String ljjf) {
		this.ljjf = ljjf;
	}
	
	@Length(min=0, max=11, message="驾驶证状态长度必须介于 0 和 11 之间")
	public String getZt() {
		return zt;
	}

	public void setZt(String zt) {
		this.zt = zt;
	}
	
	@Length(min=0, max=20, message="驾驶员姓名长度必须介于 0 和 20 之间")
	public String getXm() {
		return xm;
	}

	public void setXm(String xm) {
		this.xm = xm;
	}
	
	@Length(min=0, max=11, message="驾驶员性别长度必须介于 0 和 11 之间")
	public String getXb() {
		return xb;
	}

	public void setXb(String xb) {
		this.xb = xb;
	}
	
	@Length(min=0, max=255, message="驾驶员联系电话长度必须介于 0 和 255 之间")
	public String getLxdh() {
		return lxdh;
	}

	public void setLxdh(String lxdh) {
		this.lxdh = lxdh;
	}
	
	@Length(min=0, max=11, message="驾证期限长度必须介于 0 和 11 之间")
	public String getJzqx() {
		return jzqx;
	}

	public void setJzqx(String jzqx) {
		this.jzqx = jzqx;
	}
	
	@Length(min=0, max=5, message="驾驶员住址所属城市长度必须介于 0 和 5 之间")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=10, message="驾驶员住址所属区县长度必须介于 0 和 10 之间")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=0, max=20, message="驾驶员住址道路长度必须介于 0 和 20 之间")
	public String getRoad() {
		return road;
	}

	public void setRoad(String road) {
		this.road = road;
	}
	
	@Length(min=0, max=20, message="驾驶员住址详细长度必须介于 0 和 20 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}